home *** CD-ROM | disk | FTP | other *** search
- stop();
- _root.level = 2;
- _quality = "LOW";
- _root.stopAllSounds();
- _root.music.stop();
- music = new Sound();
- music.attachSound("level2");
- music.start();
- timesPlayed = 0;
- music.onSoundComplete = function()
- {
- if(timesPlayed == 0)
- {
- _root.stopAllSounds();
- _root.music.stop();
- _root.level3trans.play();
- }
- else
- {
- timesPlayed += 1;
- music.start();
- }
- };
- gameGo = false;
- diff = 3000;
- Fnum = 0;
- _root.health = 100;
- _root.magic = 100;
- _root.createEmptyMovieClip("diffMove",1);
- diffMove.onEnterFrame = function()
- {
- numnum = random(2);
- if(numnum == 1)
- {
- _root.diff -= 1;
- }
- if(_root.diff <= 0 && _root.gotoLevel3._currentframe == 1)
- {
- _root.gotoLevel3.play();
- }
- };
- pauseMC.removeMovieClip();
- _root.createEmptyMovieClip("pauseMC",0);
- pview._visible = false;
- pauseMC.onEnterFrame = function()
- {
- if(Key.isDown(80))
- {
- if(pausePress == false)
- {
- if(_root.pauseMode == false)
- {
- _root.pauseMode = true;
- }
- else
- {
- _root.pauseMode = false;
- }
- pausePress = true;
- }
- }
- else
- {
- pausePress = false;
- }
- if(_root.pauseMode == true)
- {
- pview._visible = true;
- _root.music.setVolume(40);
- }
- else
- {
- pview._visible = false;
- _root.music.setVolume(100);
- }
- };
-